<include file="public@head"/>
<include file="public@member_head"/>

<script type="text/html" id="photos-item-tpl">
    <li id="saved-image{id}">
        <input id="photo-{id}" type="hidden" name="photo_urls[]" value="{filepath}">
        <input class="form-control" id="photo-{id}-name" type="text" name="photo_names[]" value="{name}"
               style="width: 200px;" title="图片名称">
        <img id="photo-{id}-preview" src="{url}" style="height:36px;width: 36px;"
             onclick="imagePreviewDialog(this.src);">
        <a href="javascript:uploadOneImage('图片上传','#photo-{id}');">替换</a>
        <a href="javascript:(function(){$('#saved-image{id}').remove();})();">移除</a>
    </li>
</script>
<script type="text/html" id="files-item-tpl">
    <li id="saved-file{id}">
        <input id="file-{id}" type="hidden" name="file_urls[]" value="{filepath}">
        <input class="form-control" id="file-{id}-name" type="text" name="file_names[]" value="{name}"
               style="width: 200px;" title="文件名称">
        <a id="file-{id}-preview" href="{preview_url}" target="_blank">下载</a>
        <a href="javascript:uploadOne('文件上传','#file-{id}','file');">替换</a>
        <a href="javascript:(function(){$('#saved-file{id}').remove();})();">移除</a>
    </li>
</script>
<script type="text/javascript">
	//编辑器路径定义
	var editorURL = GV.WEB_ROOT;
</script>
<script type="text/javascript" src="/static/js/ueditor/ueditor.config.js"></script>
<script type="text/javascript" src="/static/js/ueditor/ueditor.all.min.js"></script>

<div class="st-container st-marc" style="padding-bottom:6em;">
    <div class="st-dataBlock">
      <style>.formBlock th{ width:25%; padding-right:10px!important; vertical-align:top; text-align:right;}.formBlock td{ width:75%;}.formBlock input[type="text"],.formBlock textarea{ width:100%;}.formBlock table tr th{ vertical-align: top;}.formBlock table tr td{ padding-bottom:15px;}</style>
      <div class="st-contentTable st-formBlock st-form35 st-wid50 st-marc formBlock st-xd-wid100">
      		  <form class="js-ajax-form" action="{:cmf_url('portal/list/index',array('id'=>$configinfo['columnid'],'act'=>'supplier','type'=>'editpost'))}" method="post" enctype="multipart/form-data">
              <table width="100%" border="1">  
                  <tr>
                    <th width="15%">标题</th>
                    <td width="85%"><input type="text" name="senddata[post_title]" value="{$data['post_title']}" required></td>
                  </tr> 
                  <tr>
                        <th>关键词</th>
                        <td>
                            <input class="form-control" type="text" name="senddata[post_keywords]" id="keywords" value="" placeholder="请输入关键字">
                            <span class="st-col9">多关键词之间用英文逗号隔开</span>
                        </td>
                    </tr>
                    <tr>
                        <th>摘要</th>
                        <td>
                            <textarea class="form-control" name="senddata[post_excerpt]" style="height: 80px;" placeholder="请填写摘要"></textarea>
                        </td>
                    </tr>
                  {$contenthtml}
                  <tr>
                        <td colspan="2">
							
                            <script type="text/plain" id="content" name="senddata[post_content]" style="height:350px;">{$parameter_default['post_content']}</script>
                        </td>
                    </tr>
                  <tr>
                    <th>
                    	<input type="hidden" value="{$_MGPC_GET['actid']}" name="actid">
                    </th>
                    <td><button type="submit" class="st-buttBox st-buttBoxl js-ajax-submit">保存</button></td>
                   </tr>  
               </table>
               </form> 
            </div>
    </div>
</div>

<script type="text/javascript">
	$(function () {

		editorcontent = new baidu.editor.ui.Editor();
		editorcontent.render('content');
		try {
			editorcontent.sync();
		} catch (err) {
		}
	});
</script>
  
<include file="public@member_foot"/>
<include file="public@footer"/>